import {useDictStoreWidthOut} from "@/store/modules/dict";
const dictStore=useDictStoreWidthOut();
export function getDictByCode(code){
  let dictList = dictStore.getDict;
  let item:any = dictList.find((data)=>data.dictCode===code);
  return item.dictItemList;
}
export function getDictLabel(code,value){
  let list = getDictByCode(code);
  let result = list.find((data)=>data.itemValue===value+'');
  return result.itemText;
}
